package com.jyx.framework.domain.course.response;

import com.jyx.framework.model.response.ResultCode;

public enum CourseCode implements ResultCode {
    COURSE_COURSEISNULL(false,34001,"课程信息为空！"),
    COURSE_COURSEMARKETISNULL(false,34002,"课程营销信息为空！"),
    COURSE_SYSDICISNULL(false,34003,"系统数据为空！"),
    COURSE_COURSEPICISNULL(false,34004,"课程图片信息为空！"),
    COURSE_MEDIA_TEACHPLAN_ISNULL(false,33001,"课程图片信息为空！"),
    COURSE_MEDIA_TEACHPLAN_GRADEERROR(false,33002,"课程图片信息为空！");

    private CourseCode(boolean success, int code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    boolean success;
    int code;
    String message;

    @Override
    public boolean success() {
        return success;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
